package dev.ece.suit.loader;

import dev.ece.core.cells.model.action.BoneActionManager;

public class BoneModel3D extends AbstractModel3D<Float> {

	public BoneModel3D(ModelLoader<Float> loader) throws Exception {
		super(loader);
	}

	@Override
	public Frame<Float> createFrameInstance() {
		Frame<Float> frame = new Frame<Float>();
		frame.setActionManager(new BoneActionManager());
		frame.setCurrent(0f);
		frame.setIndice(this.getDefaultIndice());
		return frame;
	}

	@Override
	public Float createCurrent(int frame) {
		return this.getTotal()  * frame / this.getFrameCount();
	}

}
